# import requests
#
#
# def download_chao_xing_image():
#     url = "https://p.ananas.chaoxing.com/star3/origin/a8f2070e5b69de9c6f21b8d02b5212f42ad7851ab80c1146.jpg"
#
#     headers = {
#         'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
#         'Accept': 'image/webp,image/apng,image/*,*/*;q=0.8',
#         'Referer': 'https://chaoxing.com/'  # 超星主站作为Referer
#     }
#
#     try:
#         response = requests.get(url, headers=headers, timeout=10)
#         print(f"状态码: {response.status_code}")
#         print(f"文件大小: {len(response.content)} 字节")
#
#         if response.status_code == 200:
#             with open('chaoxing_image.jpg', 'wb') as f:
#                 f.write(response.content)
#             print("图片下载成功!")
#         else:
#             print("下载失败")
#
#     except Exception as e:
#         print(f"错误: {e}")
#
# download_chao_xing_image()

